package com.vip.jwt.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Getter
@Setter
public class UserDTO {

    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "账号不能为空")
    @Length(min = 3,message = "账号不能低于6位字符")
    private String username;

    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    @Length(min = 6,message = "密码不能低于6位字符")
    private String password;

    private String verKey;

    private String verCode;

}
